package com.huaxin.hxmodulesystem.mapping;

import com.huaxin.hxmodulesystem.dto.request.AddSysUserReqDTO;
import com.huaxin.hxmodulesystem.dto.request.UpdateSysUserReqDTO;
import com.huaxin.hxmodulesystem.models.SysUser;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

@Mapper(componentModel = "spring")
public interface SysUserMapping {
    SysUser toEntity(AddSysUserReqDTO in);

    void updateEntity(UpdateSysUserReqDTO in, @MappingTarget SysUser entity);
}
